Introduction

Overview of AppleScript

Conventions Used in This Guide
What Is AppleScript?
How AppleScript Works
Statements
Commands and Objects
Dictionaries
Values and Constants
Expressions
Script Objects
Scripting Additions
Dialects
Other Features and Language Elements

Values and Constants

Using Value Class Definitions
Common Value Class Definitions
Unicode Text and International Text
Unit Type Value Classes
Other Value Classes
Coercing Values
Constants

Commands

Types of Commands
Using Command Definitions
Using Parameters
Using Results
Double Angle Brackets in Results and Scripts
Command Definitions

Objects and References

Object Class Definitions
References
Reference Forms
Using the Filter Reference Form
References to Files and Applications

Expressions

Results of Expressions
Variables
Script Properties
AppleScript Properties
Reference Expressions
Operations

Control Statements

Characteristics of Control Statements
Debugging Control Statements
Tell Statements
If Statements
Repeat Statements
Try Statements
Considering and Ignoring Statements
With Timeout Statements
With Transaction Statements

Handlers

Script Applications
About Subroutines
Defining and Calling Subroutines
Command Handlers
Scope of Script Variables and Properties

Script Objects

About Script Objects
Defining Script Objects
Sending Commands to Script Objects
Initializing Script Objects
Inheritance and Delegation
Using the Copy and Set Commands With Script Objects

The Language at a Glance

Common Scripting Tasks
Constants
Predefined Variables
Commands
Coercions
References
Operators
Control Statements
Handlers
Script Objects
Variable and Property Assignments and Declarations
Placeholders
Error Numbers and Error Messages

Document Revision History


Download PDF

Glossary

Contents

Figures and Tables

Notices

Credits